package com.ruoyi.system.service.impl;

import com.ruoyi.common.utils.DateUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.system.domain.SysUserIdentity;
import com.ruoyi.system.mapper.SysUserIdentityMapper;
import com.ruoyi.system.service.ISysUserIdentityService;
import org.springframework.stereotype.Service;


/**
 * 用户审核Service业务层处理
 *
 * @author ruoyi
 * @date 2025-09-20
 */
@Service
public class SysUserIdentityServiceImpl extends ServiceImpl<SysUserIdentityMapper, SysUserIdentity> implements ISysUserIdentityService{


    @Override
    public SysUserIdentity queryGetById(Long id){
        SysUserIdentity sysUserIdentity = this.getById(id);
        return sysUserIdentity;
    }

    /**
     * 新增用户审核
     *
     * @param sysUserIdentity 用户审核
     * @return 结果
     */
    @Override
    public boolean addSysUserIdentity(SysUserIdentity sysUserIdentity){
        boolean save =this.save(sysUserIdentity);
        return save;
    }

    /**
     * 修改用户审核
     *
     * @param sysUserIdentity 用户审核
     * @return 结果
     */
    @Override
    public boolean updateSysUserIdentity(SysUserIdentity sysUserIdentity){
        return this.updateById(sysUserIdentity);
    }

    /**
     * 批量删除用户审核
     *
     * @param ids 需要删除的用户审核主键
     * @return 结果
     */
    @Override
    public boolean deleteSysUserIdentityByIds(Long[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
